(global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/personnel/common/vendor" ], {
    bf05: function(t, e, n) {
        (function(e, n) {
            !function(e, n) {
                t.exports = n();
            }(0, function() {
                "use strict";
                var t = void 0, o = [ "touchstarted", "touchmoved", "touchended" ];
                function r(t) {
                    for (var e = [], n = arguments.length - 1; n-- > 0; ) e[n] = arguments[n + 1];
                    o.forEach(function(n, o) {
                        void 0 !== e[o] && (t[n] = e[o]);
                    });
                }
                function a() {
                    return t || (t = e.getSystemInfoSync()), t;
                }
                var i = {}, c = {
                    id: {
                        default: "cropper",
                        get: function() {
                            return i.id;
                        },
                        set: function(t) {
                            "string" != typeof t && console.error("id：" + t + " is invalid"), i.id = t;
                        }
                    },
                    width: {
                        default: 750,
                        get: function() {
                            return i.width;
                        },
                        set: function(t) {
                            "number" != typeof t && console.error("width：" + t + " is invalid"), i.width = t;
                        }
                    },
                    height: {
                        default: 750,
                        get: function() {
                            return i.height;
                        },
                        set: function(t) {
                            "number" != typeof t && console.error("height：" + t + " is invalid"), i.height = t;
                        }
                    },
                    pixelRatio: {
                        default: a().pixelRatio,
                        get: function() {
                            return i.pixelRatio;
                        },
                        set: function(t) {
                            "number" != typeof t && console.error("pixelRatio：" + t + " is invalid"), i.pixelRatio = t;
                        }
                    },
                    scale: {
                        default: 2.5,
                        get: function() {
                            return i.scale;
                        },
                        set: function(t) {
                            "number" != typeof t && console.error("scale：" + t + " is invalid"), i.scale = t;
                        }
                    },
                    zoom: {
                        default: 5,
                        get: function() {
                            return i.zoom;
                        },
                        set: function(t) {
                            "number" != typeof t ? console.error("zoom：" + t + " is invalid") : (t < 0 || t > 10) && console.error("zoom should be ranged in 0 ~ 10"), 
                            i.zoom = t;
                        }
                    },
                    src: {
                        default: "",
                        get: function() {
                            return i.src;
                        },
                        set: function(t) {
                            "string" != typeof t && console.error("src：" + t + " is invalid"), i.src = t;
                        }
                    },
                    cut: {
                        default: {},
                        get: function() {
                            return i.cut;
                        },
                        set: function(t) {
                            "object" != typeof t && console.error("cut：" + t + " is invalid"), i.cut = t;
                        }
                    },
                    boundStyle: {
                        default: {},
                        get: function() {
                            return i.boundStyle;
                        },
                        set: function(t) {
                            "object" != typeof t && console.error("boundStyle：" + t + " is invalid"), i.boundStyle = t;
                        }
                    },
                    onReady: {
                        default: null,
                        get: function() {
                            return i.ready;
                        },
                        set: function(t) {
                            i.ready = t;
                        }
                    },
                    onBeforeImageLoad: {
                        default: null,
                        get: function() {
                            return i.beforeImageLoad;
                        },
                        set: function(t) {
                            i.beforeImageLoad = t;
                        }
                    },
                    onImageLoad: {
                        default: null,
                        get: function() {
                            return i.imageLoad;
                        },
                        set: function(t) {
                            i.imageLoad = t;
                        }
                    },
                    onBeforeDraw: {
                        default: null,
                        get: function() {
                            return i.beforeDraw;
                        },
                        set: function(t) {
                            i.beforeDraw = t;
                        }
                    }
                }, u = a().windowWidth, s = "undefined" != typeof window ? window : void 0 !== n ? n : "undefined" != typeof self ? self : {};
                function d(t, e) {
                    return t(e = {
                        exports: {}
                    }, e.exports), e.exports;
                }
                var f = d(function(t, e) {
                    e.isStr = function(t) {
                        return "string" == typeof t;
                    }, e.isNum = function(t) {
                        return "number" == typeof t;
                    }, e.isArr = Array.isArray, e.isUndef = function(t) {
                        return void 0 === t;
                    }, e.isTrue = function(t) {
                        return !0 === t;
                    }, e.isFalse = function(t) {
                        return !1 === t;
                    }, e.isFunc = function(t) {
                        return "function" == typeof t;
                    }, e.isObj = e.isObject = function(t) {
                        return null !== t && "object" == typeof t;
                    };
                    var n = Object.prototype.toString;
                    e.isPlainObject = function(t) {
                        return "[object Object]" === n.call(t);
                    };
                    var o = Object.prototype.hasOwnProperty;
                    e.hasOwn = function(t, e) {
                        return o.call(t, e);
                    }, e.noop = function(t, e, n) {}, e.isValidArrayIndex = function(t) {
                        var e = parseFloat(String(t));
                        return e >= 0 && Math.floor(e) === e && isFinite(t);
                    };
                }), h = f.isFunc, l = f.isPlainObject, g = [ "ready", "beforeImageLoad", "beforeDraw", "imageLoad" ];
                function p(t) {
                    return function(e) {
                        for (var n = [], o = arguments.length - 1; o-- > 0; ) n[o] = arguments[o + 1];
                        return void 0 === e && (e = {}), new Promise(function(o, r) {
                            e.success = function(t) {
                                o(t);
                            }, e.fail = function(t) {
                                r(t);
                            }, t.apply(void 0, [ e ].concat(n));
                        });
                    };
                }
                function v(t, e) {
                    return void 0 === e && (e = !1), new Promise(function(n) {
                        t.draw(e, n);
                    });
                }
                var y = p(e.getImageInfo), x = p(e.canvasToTempFilePath), m = d(function(t, e) {
                    !function(n) {
                        var o = e, r = t && t.exports == o && t, a = "object" == typeof s && s;
                        a.global !== a && a.window !== a || (n = a);
                        var i = function(t) {
                            this.message = t;
                        };
                        (i.prototype = new Error()).name = "InvalidCharacterError";
                        var c = function(t) {
                            throw new i(t);
                        }, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", d = /[\t\n\f\r ]/g, f = {
                            encode: function(t) {
                                t = String(t), /[^\0-\xFF]/.test(t) && c("The string to be encoded contains characters outside of the Latin1 range.");
                                for (var e, n, o, r, a = t.length % 3, i = "", s = -1, d = t.length - a; ++s < d; ) e = t.charCodeAt(s) << 16, 
                                n = t.charCodeAt(++s) << 8, o = t.charCodeAt(++s), i += u.charAt((r = e + n + o) >> 18 & 63) + u.charAt(r >> 12 & 63) + u.charAt(r >> 6 & 63) + u.charAt(63 & r);
                                return 2 == a ? (e = t.charCodeAt(s) << 8, n = t.charCodeAt(++s), i += u.charAt((r = e + n) >> 10) + u.charAt(r >> 4 & 63) + u.charAt(r << 2 & 63) + "=") : 1 == a && (r = t.charCodeAt(s), 
                                i += u.charAt(r >> 2) + u.charAt(r << 4 & 63) + "=="), i;
                            },
                            decode: function(t) {
                                var e = (t = String(t).replace(d, "")).length;
                                e % 4 == 0 && (e = (t = t.replace(/==?$/, "")).length), (e % 4 == 1 || /[^+a-zA-Z0-9/]/.test(t)) && c("Invalid character: the string to be decoded is not correctly encoded.");
                                for (var n, o, r = 0, a = "", i = -1; ++i < e; ) o = u.indexOf(t.charAt(i)), n = r % 4 ? 64 * n + o : o, 
                                r++ % 4 && (a += String.fromCharCode(255 & n >> (-2 * r & 6)));
                                return a;
                            },
                            version: "0.1.0"
                        };
                        if (o && !o.nodeType) if (r) r.exports = f; else for (var h in f) f.hasOwnProperty(h) && (o[h] = f[h]); else n.base64 = f;
                    }(s);
                });
                function b(t) {
                    var e = "";
                    if ("string" == typeof t) e = t; else for (var n = 0; n < t.length; n++) e += String.fromCharCode(t[n]);
                    return m.encode(e);
                }
                function w(t, n, o, r, a, i) {
                    e.canvasGetImageData({
                        canvasId: t,
                        x: n,
                        y: o,
                        width: r,
                        height: a,
                        success: function(t) {
                            i(t, null);
                        },
                        fail: function(t) {
                            i(null, t);
                        }
                    });
                }
                function C(t, e, n, o, r, a, i) {
                    void 0 === i && (i = function() {}), void 0 === a && (a = "png"), a = function(t) {
                        return "image/" + (t = t.toLowerCase().replace(/jpg/i, "jpeg")).match(/png|jpeg|bmp|gif/)[0];
                    }(a), /bmp/.test(a) ? w(t, e, n, o, r, function(t, e) {
                        var n = function(t) {
                            var e = t.width, n = t.height, o = e * n * 3, r = o + 54, a = [ 66, 77, 255 & r, r >> 8 & 255, r >> 16 & 255, r >> 24 & 255, 0, 0, 0, 0, 54, 0, 0, 0 ], i = [ 40, 0, 0, 0, 255 & e, e >> 8 & 255, e >> 16 & 255, e >> 24 & 255, 255 & n, n >> 8 & 255, n >> 16 & 255, n >> 24 & 255, 1, 0, 24, 0, 0, 0, 0, 0, 255 & o, o >> 8 & 255, o >> 16 & 255, o >> 24 & 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], c = (4 - 3 * e % 4) % 4, u = t.data, s = "", d = e << 2, f = n, h = String.fromCharCode;
                            do {
                                for (var l = d * (f - 1), g = "", p = 0; p < e; p++) {
                                    var v = p << 2;
                                    g += h(u[l + v + 2]) + h(u[l + v + 1]) + h(u[l + v]);
                                }
                                for (var y = 0; y < c; y++) g += String.fromCharCode(0);
                                s += g;
                            } while (--f);
                            return b(a.concat(i)) + b(s);
                        }(t);
                        h(i) && i(function(t, e) {
                            return "data:" + e + ";base64," + t;
                        }(n, "image/" + a), e);
                    }) : console.error("暂不支持生成'" + a + "'类型的base64图片");
                }
                var S = function(t, e) {
                    return void 0 === t && (t = {}), void 0 === e && (e = function() {}), C(t.canvasId, t.x, t.y, t.width, t.height, "bmp", e);
                }, I = {
                    touchStart: function(t) {
                        var e = this, n = t.touches, o = n[0], a = n[1];
                        e.src && (r(e, !0, null, null), e.__oneTouchStart(o), t.touches.length >= 2 && e.__twoTouchStart(o, a));
                    },
                    touchMove: function(t) {
                        var e = this, n = t.touches, o = n[0], a = n[1];
                        e.src && (r(e, null, !0), 1 === t.touches.length && e.__oneTouchMove(o), t.touches.length >= 2 && e.__twoTouchMove(o, a));
                    },
                    touchEnd: function(t) {
                        var e = this;
                        e.src && (r(e, !1, !1, !0), e.__xtouchEnd());
                    }
                }, M = function(t) {
                    var e = this, n = {};
                    return function(t, e) {
                        Object.defineProperties(t, e);
                    }(e, c), Object.keys(c).forEach(function(t) {
                        n[t] = c[t].default;
                    }), Object.assign(e, n, t), e.prepare(), e.attachPage(), e.createCtx(), e.observer(), 
                    e.cutt(), e.methods(), e.init(), e.update(), e;
                };
                return M.prototype.init = function() {
                    var t = this, e = t.src;
                    return t.version = "1.3.9", "function" == typeof t.onReady && t.onReady(t.ctx, t), 
                    e ? t.pushOrign(e) : t.updateCanvas(), r(t, !1, !1, !1), t.oldScale = 1, t.newScale = 1, 
                    t;
                }, Object.assign(M.prototype, I), M.prototype.prepare = function() {
                    var t = this;
                    t.attachPage = function() {
                        var e = getCurrentPages(), n = e[e.length - 1];
                        Object.defineProperty(n, "wecropper", {
                            get: function() {
                                return console.warn("Instance will not be automatically bound to the page after v1.4.0\n\nPlease use a custom instance name instead\n\nExample: \nthis.mycropper = new WeCropper(options)\n\n// ...\nthis.mycropper.getCropperImage()"), 
                                t;
                            },
                            configurable: !0
                        });
                    }, t.createCtx = function() {
                        var n = t.id, o = t.targetId;
                        n ? (t.ctx = t.ctx || e.createCanvasContext(n), t.targetCtx = t.targetCtx || e.createCanvasContext(o)) : console.error("constructor: create canvas context failed, 'id' must be valuable");
                    }, t.deviceRadio = u / 750;
                }, M.prototype.observer = function() {
                    var t = this;
                    t.on = function(e, n) {
                        return g.indexOf(e) > -1 ? h(n) && ("ready" === e ? n(t) : t["on" + function(t) {
                            return t.charAt(0).toUpperCase() + t.slice(1);
                        }(e)] = n) : console.error("event: " + e + " is invalid"), t;
                    };
                }, M.prototype.methods = function() {
                    var t = this, e = t.width, n = t.height, o = t.id, r = t.targetId, a = t.pixelRatio, i = t.cut, c = i.x;
                    void 0 === c && (c = 0);
                    var u = i.y;
                    void 0 === u && (u = 0);
                    var s = i.width;
                    void 0 === s && (s = e);
                    var d = i.height;
                    void 0 === d && (d = n), t.updateCanvas = function(e) {
                        return t.croperTarget && t.ctx.drawImage(t.croperTarget, t.imgLeft, t.imgTop, t.scaleWidth, t.scaleHeight), 
                        h(t.onBeforeDraw) && t.onBeforeDraw(t.ctx, t), t.setBoundStyle(t.boundStyle), t.ctx.draw(!1, e), 
                        t;
                    }, t.pushOrigin = t.pushOrign = function(e) {
                        return t.src = e, h(t.onBeforeImageLoad) && t.onBeforeImageLoad(t.ctx, t), y({
                            src: e
                        }).then(function(e) {
                            var n = e.width / e.height, o = s / d;
                            return t.croperTarget = e.path, n < o ? (t.rectX = c, t.baseWidth = s, t.baseHeight = s / n, 
                            t.rectY = u - Math.abs((d - t.baseHeight) / 2)) : (t.rectY = u, t.baseWidth = d * n, 
                            t.baseHeight = d, t.rectX = c - Math.abs((s - t.baseWidth) / 2)), t.imgLeft = t.rectX, 
                            t.imgTop = t.rectY, t.scaleWidth = t.baseWidth, t.scaleHeight = t.baseHeight, t.update(), 
                            new Promise(function(e) {
                                t.updateCanvas(e);
                            });
                        }).then(function() {
                            h(t.onImageLoad) && t.onImageLoad(t.ctx, t);
                        });
                    }, t.removeImage = function() {
                        return t.src = "", t.croperTarget = "", v(t.ctx);
                    }, t.getCropperBase64 = function(t) {
                        void 0 === t && (t = function() {}), S({
                            canvasId: o,
                            x: c,
                            y: u,
                            width: s,
                            height: d
                        }, t);
                    }, t.getCropperImage = function(e, n) {
                        var i = e, f = {
                            canvasId: o,
                            x: c,
                            y: u,
                            width: s,
                            height: d
                        }, g = function() {
                            return Promise.resolve();
                        };
                        return l(i) && i.original && (g = function() {
                            return t.targetCtx.drawImage(t.croperTarget, t.imgLeft * a, t.imgTop * a, t.scaleWidth * a, t.scaleHeight * a), 
                            f = {
                                canvasId: r,
                                x: c * a,
                                y: u * a,
                                width: s * a,
                                height: d * a
                            }, v(t.targetCtx);
                        }), g().then(function() {
                            l(i) && (f = Object.assign({}, f, i)), h(i) && (n = i);
                            var t = f.componentContext ? [ f, f.componentContext ] : [ f ];
                            return x.apply(null, t);
                        }).then(function(e) {
                            var o = e.tempFilePath;
                            return h(n) ? n.call(t, o, null) : o;
                        }).catch(function(e) {
                            if (!h(n)) throw e;
                            n.call(t, null, e);
                        });
                    };
                }, M.prototype.cutt = function() {
                    var t = this, e = t.width, n = t.height, o = t.cut, r = o.x;
                    void 0 === r && (r = 0);
                    var a = o.y;
                    void 0 === a && (a = 0);
                    var i = o.width;
                    void 0 === i && (i = e);
                    var c = o.height;
                    void 0 === c && (c = n), t.outsideBound = function(e, n) {
                        t.imgLeft = e >= r ? r : t.scaleWidth + e - r <= i ? r + i - t.scaleWidth : e, t.imgTop = n >= a ? a : t.scaleHeight + n - a <= c ? a + c - t.scaleHeight : n;
                    }, t.setBoundStyle = function(o) {
                        void 0 === o && (o = {});
                        var u = o.color;
                        void 0 === u && (u = "#04b00f");
                        var s = o.mask;
                        void 0 === s && (s = "rgba(0, 0, 0, 0.3)");
                        var d = o.lineWidth;
                        void 0 === d && (d = 1);
                        var f = d / 2, h = [ {
                            start: {
                                x: r - f,
                                y: a + 10 - f
                            },
                            step1: {
                                x: r - f,
                                y: a - f
                            },
                            step2: {
                                x: r + 10 - f,
                                y: a - f
                            }
                        }, {
                            start: {
                                x: r - f,
                                y: a + c - 10 + f
                            },
                            step1: {
                                x: r - f,
                                y: a + c + f
                            },
                            step2: {
                                x: r + 10 - f,
                                y: a + c + f
                            }
                        }, {
                            start: {
                                x: r + i - 10 + f,
                                y: a - f
                            },
                            step1: {
                                x: r + i + f,
                                y: a - f
                            },
                            step2: {
                                x: r + i + f,
                                y: a + 10 - f
                            }
                        }, {
                            start: {
                                x: r + i + f,
                                y: a + c - 10 + f
                            },
                            step1: {
                                x: r + i + f,
                                y: a + c + f
                            },
                            step2: {
                                x: r + i - 10 + f,
                                y: a + c + f
                            }
                        } ];
                        t.ctx.beginPath(), t.ctx.setFillStyle(s), t.ctx.fillRect(0, 0, r, n), t.ctx.fillRect(r, 0, i, a), 
                        t.ctx.fillRect(r, a + c, i, n - a - c), t.ctx.fillRect(r + i, 0, e - r - i, n), 
                        t.ctx.fill(), h.forEach(function(e) {
                            t.ctx.beginPath(), t.ctx.setStrokeStyle(u), t.ctx.setLineWidth(d), t.ctx.moveTo(e.start.x, e.start.y), 
                            t.ctx.lineTo(e.step1.x, e.step1.y), t.ctx.lineTo(e.step2.x, e.step2.y), t.ctx.stroke();
                        });
                    };
                }, M.prototype.update = function() {
                    var t = this;
                    t.src && (t.__oneTouchStart = function(e) {
                        t.touchX0 = Math.round(e.x), t.touchY0 = Math.round(e.y);
                    }, t.__oneTouchMove = function(e) {
                        var n, o;
                        if (t.touchended) return t.updateCanvas();
                        n = Math.round(e.x - t.touchX0), o = Math.round(e.y - t.touchY0);
                        var r = Math.round(t.rectX + n), a = Math.round(t.rectY + o);
                        t.outsideBound(r, a), t.updateCanvas();
                    }, t.__twoTouchStart = function(e, n) {
                        var o, r, a;
                        t.touchX1 = Math.round(t.rectX + t.scaleWidth / 2), t.touchY1 = Math.round(t.rectY + t.scaleHeight / 2), 
                        o = Math.round(n.x - e.x), r = Math.round(n.y - e.y), a = Math.round(Math.sqrt(o * o + r * r)), 
                        t.oldDistance = a;
                    }, t.__twoTouchMove = function(e, n) {
                        var o = t.oldScale, r = t.oldDistance, a = t.scale, i = t.zoom;
                        t.newScale = function(t, e, n, o, r) {
                            var a, i;
                            return a = Math.round(r.x - o.x), i = Math.round(r.y - o.y), t + .001 * n * (Math.round(Math.sqrt(a * a + i * i)) - e);
                        }(o, r, i, e, n), t.newScale <= 1 && (t.newScale = 1), t.newScale >= a && (t.newScale = a), 
                        t.scaleWidth = Math.round(t.newScale * t.baseWidth), t.scaleHeight = Math.round(t.newScale * t.baseHeight);
                        var c = Math.round(t.touchX1 - t.scaleWidth / 2), u = Math.round(t.touchY1 - t.scaleHeight / 2);
                        t.outsideBound(c, u), t.updateCanvas();
                    }, t.__xtouchEnd = function() {
                        t.oldScale = t.newScale, t.rectX = t.imgLeft, t.rectY = t.imgTop;
                    });
                }, M;
            });
        }).call(this, n("543d").default, n("c8ba"));
    }
} ]);